package com.yy.qpgame.server;

import com.yy.qpgame.server.netty.NettyServer;
import com.yy.qpgame.server.netty.websocket.WebsocketServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.yy.qpgame.server.dao")
public class ServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args);
        NettyServer websocketServer = new WebsocketServer();
        websocketServer.start();
    }

}
